<?php


namespace app\admin\controller;


use app\admin\services\BomService;
use app\BaseController;
use think\App;

class Bom extends BaseController
{
    protected $middleware=['CheckTokenMiddleware'];
    public function __construct(App $app)
    {
        parent::__construct($app);
    }
    public function index(){
        $p=$this->request->get();
        BomService::tableList($p);
    }
    public function recursionList(){
        $p=$this->request->get();
        BomService::recursionList($p);
    }
    public function skuRecursionList(){
        $p=$this->request->get();
        BomService::skuRecursionList($p);
    }
    public function edit(){
        $p=$this->request->param();
        $p['creator_id']=$this->request->adminUid;
        BomService::edit($p);
    }
    public function del(){
        $p=$this->request->post();
        BomService::del($p);
    }
    public function files(){
        $p=$this->request->get();
        BomService::files($p);
    }
    public function getChildrenBySku(){
        $p=$this->request->get();
        BomService::getChildrenBySku($p);
    }
    public function getChildrenBySkuTool(){
        $p=$this->request->get();
        BomService::getChildrenBySkuTool($p);
    }
}
